package com.geek.javase.ch03.test2;

/*
 *@author wangpeng
 *2025/10/12 20:36
 *@description TODO
 */
public class Test {
    public static void main(String[] args) {
        //多态
        Employee e1 = new Manager("wangpeng",999,6000,0);
        System.out.println("员工涨薪前"+e1.getPay());
        e1.addSalary(11);
        System.out.println("员工涨薪后"+e1.getPay());

        Manager m1 = new Manager("wangpeng", 888, 60000, 1000000);
        System.out.println("经理涨薪前："+m1.getPay());
        m1.addSalary(30);
        System.out.println("经理涨薪后："+m1.getPay());

    }
}
